-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:fix add image_file_name column on attendees table #180
Conversation
✅ Deploy Preview for vuefes-2024 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
supabase/schema.sql
Outdated
@@ -88,6 +88,8 @@ create table if not exists public.attendees ( | |||
updated_at timestamp with time zone default timezone('utc' :: text, now()) not null | |||
); | |||
|
|||
ALTER TABLE public.attendees ADD COLUMN image_file_name varchar(100) not null unique; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASK
UUID が入る想定で問題無いですよね
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jiyuujin
確かにそうですね。
以下のような形で、uuidを生成する形で問題ないでしょうか?
ALTER TABLE public.attendees ADD COLUMN image_file_name uuid not null unique default uuid_generate_v4();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上記内容で修正した内容をpushしています。
ファイルダウンロード時に、${image_file_name}.jpg
のような形になると思いますので
ファイル名はユニークであれば適当に生成しちゃって良いと理解しました。間違っていたらすいません。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良いと思います、ユニークにしていただいていれば画像を特定できるはずですので問題無いかと
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ご確認ありがとうございます。 |
@jiyuujin |
#Issue
https://vuejs-jp.slack.com/archives/C0679DDM1EX/p1720232169741139?thread_ts=1719322838.997179&cid=C0679DDM1EX
#Details
https://github.com/vuejs-jp/vuefes-2024-backside/issues/207